from django.urls import path
from . import views

from rest_framework.routers import SimpleRouter

urlpatterns = [
    # 频道列表
    path('channels/', views.ArticleChannelAPIView.as_view()),
]

router = SimpleRouter()

router.register('article', views.ArticleViewSet, 'article')
router.register('articles/search', views.ArticleSearchViewSet, base_name='articles_search')

urlpatterns += router.urls